﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReportSummary.aspx.cs"
    Inherits="Trangtrai.report.ReportSummary" MasterPageFile="~/SiteMaster.Master" %>

<%@ Register Assembly="DevExpress.XtraCharts.v11.1.Web, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.XtraCharts.Web" TagPrefix="dxchartsui" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.XtraCharts.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.XtraCharts" TagPrefix="cc1" %>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">

    <script type="text/javascript">
    
    </script>

    <center>
        <table width="960px">
            <tr>
                <td align="left" style="font-size: large" colspan="14">
                    <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="BÁO CÁO XỬ LÝ HÓA CHẤT">
                    </dx:ASPxLabel>
                </td>
            </tr>
            <tr>
                <td class="style1" colspan="14">
                    <br />
                </td>
            </tr>
            <tr>
                <td align="left" colspan="14">
                    <table width="960px">
                        <tr>
                            <td class="style2" align="left">
                                <dx:ASPxLabel ID="ASPxLabel2" Text="Mã ao" runat="server">
                                </dx:ASPxLabel>
                            </td>
                            <td class="style1" align="left">
                                <dx:ASPxComboBox ID="cbAoCode" runat="server" Width="186px" TextField="aoCode" ValueField="aoId"
                                    ValueType="System.Int32" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                    CssPostfix="Office2003Blue" ClientInstanceName="cbAoCode" 
                                    SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css" Height="25px">
                                    <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                                    </LoadingPanelImage>
                                    <ButtonStyle Width="13px">
                                    </ButtonStyle>
                                </dx:ASPxComboBox>
                            </td>
                            <td class="style2" align="left">
                                <dx:ASPxLabel ID="ASPxLabel3" Text="Mùa vụ" runat="server">
                                </dx:ASPxLabel>
                            </td>
                            <td class="style2" align="left">
                                <dx:ASPxComboBox ID="cbSeason" runat="server" TextField="seasonName"
                                    ValueField="seasonId" ValueType="System.Int32" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css"
                                    CssPostfix="Office2003Blue" ClientInstanceName="cbAoCode" SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                                    <LoadingPanelImage Url="~/App_Themes/Office2003Blue/Web/Loading.gif">
                                    </LoadingPanelImage>
                                    <ButtonStyle Width="13px">
                                    </ButtonStyle>
                                </dx:ASPxComboBox>
                            </td>
                           
                            <td class="style2" align="left">
                                <dx:ASPxLabel ID="ASPxLabel4" runat="server" Text="Đến ngày">
                                </dx:ASPxLabel>
                            </td>
                            <td class="style1" align="left">
                                <dx:ASPxDateEdit ID="toDate" runat="server">
                                </dx:ASPxDateEdit>
                            </td>
                            <td class="style1">
                                <dx:ASPxButton Text="Tìm kiếm" runat="server" ID="btnsearch" CssFilePath="~/App_Themes/SoftOrange/{0}/styles.css"
                                    CssPostfix="SoftOrange" SpriteCssFilePath="~/App_Themes/SoftOrange/{0}/sprite.css"
                                    OnClick="btnsearch_Click" AutoPostBack="true" Width="80px">
                                </dx:ASPxButton>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            
            <tr>
                <td colspan="9">
                    <br />
                </td>
            </tr>
            <!-- báo cáo về sử dụng hóa chất-->
            <tr>
                <td colspan="14" align="left">
                    <dx:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" Width="960px"
                        CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                        CssPostfix="Office2003Blue" 
                        oncustomunboundcolumndata="grid_CustomUnboundColumnData">
                        <ImagesFilterControl>
                            <LoadingPanel Url="~/App_Themes/Office2003Blue/Editors/Loading.gif">
                            </LoadingPanel>
                        </ImagesFilterControl>
                        <Images SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2003Blue/GridView/gvLoadingOnStatusBar.gif">
                            </LoadingPanelOnStatusBar>
                            <LoadingPanel Url="~/App_Themes/Office2003Blue/GridView/Loading.gif">
                            </LoadingPanel>
                        </Images>
                        <Styles CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" CssPostfix="Office2003Blue">
                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                            </Header>
                            <LoadingPanel ImageSpacing="10px">
                            </LoadingPanel>
                        </Styles>
                        <Columns>
                            <dx:GridViewDataDateColumn FieldName="createdDate" VisibleIndex="0" GroupIndex="0"
                                Caption="Ngày" Width="150px" />
                            <dx:GridViewDataColumn FieldName="tomAge" VisibleIndex="3" Caption="Ngày Tuổi" />
                            <dx:GridViewDataColumn FieldName="hoachatName" VisibleIndex="4" Caption="Tên hóa chất" />
                            <dx:GridViewDataColumn FieldName="totalValue" VisibleIndex="5" Caption="Số lượng" />
                            <dx:GridViewDataTextColumn FieldName="Total" VisibleIndex="7" UnboundType="Decimal">
                                <PropertiesTextEdit DisplayFormatString="#.##" />
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <Settings ShowGroupPanel="true" />
                        <GroupSummary>
                            <dx:ASPxSummaryItem FieldName="Total" SummaryType="Sum" />
                            <dx:ASPxSummaryItem FieldName="hoaChatName" SummaryType="Count" />
                        </GroupSummary>
                        <StylesEditors>
                            <ProgressBar Height="25px">
                            </ProgressBar>
                        </StylesEditors>
                    </dx:ASPxGridView>
                </td>
            </tr>
             <tr>
                <td>
                    <br />
                 </td>
            </tr>
            <tr>
                <td align="left" style="font-size: large" colspan="14">
                    <dx:ASPxLabel ID="ASPxLabel5" runat="server" Text="BÁO CÁO TỔNG HỢP">
                    </dx:ASPxLabel>
                </td>
            </tr>
            <tr>
                <td class="style1" colspan="9" align="left">
                    <dx:ASPxGridView ID="gridSumReport" ClientInstanceName="gridSumReport" runat="server"
                        Width="960px" CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" 
                        CssPostfix="Office2003Blue" KeyFieldName="aoSeasonId" 
                        AutoGenerateColumns="False" >
                        <ImagesFilterControl>
                            <LoadingPanel Url="~/App_Themes/Office2003Blue/Editors/Loading.gif">
                            </LoadingPanel>
                        </ImagesFilterControl>
                        <Images SpriteCssFilePath="~/App_Themes/Office2003Blue/{0}/sprite.css">
                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2003Blue/GridView/gvLoadingOnStatusBar.gif">
                            </LoadingPanelOnStatusBar>
                            <LoadingPanel Url="~/App_Themes/Office2003Blue/GridView/Loading.gif">
                            </LoadingPanel>
                        </Images>
                        <Styles CssFilePath="~/App_Themes/Office2003Blue/{0}/styles.css" CssPostfix="Office2003Blue">
                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                            </Header>
                            <LoadingPanel ImageSpacing="10px">
                            </LoadingPanel>
                        </Styles>
                        <Columns>
                            <dx:GridViewDataDateColumn FieldName="aoCode" VisibleIndex="0" Caption="Mã Ao" Width="150px" />
                            <dx:GridViewDataColumn FieldName="dienTich" VisibleIndex="1" Caption="Diện tích ao" />
                            <dx:GridViewDataColumn FieldName="ngayTha" VisibleIndex="2" Caption="Ngày Thả" />
                            <dx:GridViewDataColumn FieldName="numberOfTom" VisibleIndex="3" Caption="Số lượng tha" />
                            <dx:GridViewDataTextColumn FieldName="matDo" VisibleIndex="4" Caption="Mật độ (con/m2)">
                                <PropertiesTextEdit DisplayFormatString="#.##"/>
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataColumn FieldName="foodDK" VisibleIndex="5" Caption="TA-Dự kiến" />
                            <dx:GridViewDataColumn FieldName="foodTT" VisibleIndex="6" Caption="TA-Thực tế" />
                            <dx:GridViewDataColumn FieldName="hoachatName" VisibleIndex="7" Caption="Tên hóa chất" />
                            <dx:GridViewDataColumn FieldName="unitName" VisibleIndex="8" Caption="HC-Đơn vị" />
                            <dx:GridViewDataColumn FieldName="unitName" VisibleIndex="9" Caption="HC-Đơn vị" />
                            <dx:GridViewDataColumn FieldName="hcToTalValue" VisibleIndex="10" Caption="HC-Thực tế" />
                            <dx:GridViewDataColumn FieldName="SLDK" VisibleIndex="11" Caption="SL-Dự kiến" />
                            <dx:GridViewDataColumn FieldName="SLTT" VisibleIndex="12" Caption="SL-Thực tế" />
                            <dx:GridViewDataColumn FieldName="hstaDK" VisibleIndex="13"  Caption="HSTA-Dự kiến" />
                            <dx:GridViewDataColumn FieldName="hstaTT" VisibleIndex="14" Caption="HSTA-Thực tế" />
                            <dx:GridViewDataColumn FieldName="tomsizeDKInGam" VisibleIndex="15" Caption="Cỡ Tôm(gam/con)-Dự kiến" />
                            <dx:GridViewDataColumn FieldName="tomsizeTTInGam" VisibleIndex="16" Caption="Cỡ Tôm(gam/con)-Thực tế" />
                            <dx:GridViewDataColumn FieldName="tomsizeDKInKg" VisibleIndex="17" Caption="Cỡ Tôm(kg/con)-Dự kiến" />
                            <dx:GridViewDataColumn FieldName="tomsizeTTInKg" VisibleIndex="18" Caption="Cỡ Tôm(kg/con)-Thực tế" />
                        </Columns>
                    </dx:ASPxGridView>
                </td>
            </tr>
           
            
            <!-- BÁO CÁO CHỈ TIÊU KINH TẾ-->
           <!--
            <tr>
                <td>
                    <br />
                 </td>
            </tr>
            <tr>
                <td align="left" style="font-size: large" colspan="14">
                    <dx:ASPxLabel ID="ASPxLabel6" runat="server" Text="BÁO CÁO CHỈ TIÊU KINH TẾ">
                    </dx:ASPxLabel>
                </td>
            </tr>
             <tr>
                <td>
                    
                </td>
            </tr>
            -->
        </table>
    </center>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="head">

    <script type="text/javascript" src="../../js/jquery-latest.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {

            $("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled - Adds empty span tag after ul.subnav

            $("ul.topnav li span").click(function() { //When trigger is clicked...

                //Following events are applied to the subnav itself (moving subnav up and down)
                $(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click

                $(this).parent().hover(function() {
                }, function() {
                    $(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
                });
                ;
                //Following events are applied to the trigger (Hover events for the trigger)
            }).hover(function() {
                $(this).addClass("subhover"); //On hover over, add class "subhover"
            }, function() {	//On Hover Out
                $(this).removeClass("subhover"); //On hover out, remove class "subhover"
            });

        });
    </script>

    <style type="text/css">
        .style1
        {
            width: 120px;
            
        }
         .style2
        {
            width: 60px;
        }
    
    </style>
</asp:Content>
